package cn.cloudreal.cbms.resourceState.service.impl;

import java.util.List;

import cn.cloudreal.cbms.common.util.PageBean;
import cn.cloudreal.cbms.resmonitor.dao.ResMonitorDao;
import cn.cloudreal.cbms.resmonitor.service.ResMonitorService;
import cn.cloudreal.cbms.resourceState.dao.ResStateDao;
import cn.cloudreal.cbms.resourceState.service.ResStateService;
import cn.cloudreal.cbms.system.dao.SampleDao;
import cn.cloudreal.cbms.system.service.SampleService;
import cn.cloudreal.cbms.vo.Mediasumm;
import cn.cloudreal.cbms.vo.ProjectMedium;
import cn.cloudreal.cbms.vo.PutInPlanMonth;
import cn.cloudreal.cbms.vo.Sample;
import cn.cloudreal.cbms.vo.SourcePlanYear;
import cn.cloudreal.cbms.vo.UserInfo;

/**
 * <p>
 * Title: ITC
 * </p>
 * <p>
 * Description:资源预占service层实现类
 * </p>
 * <p>
 * Copyright: Copyright (c) 2010
 * </p>
 * <p>
 * Company:云恒瑞通
 * </p>
 * 
 * @author 夏加冬
 * @date 2012-7-9
 */
public class ResStateServiceImpl implements ResStateService
{

    /** 查询数据dao */
    private ResStateDao resStateDao;

    /**
     * 查询资源状态预占列表
     * 
     * @return list
     */
    public List<ProjectMedium> getProjMediums(PageBean page,
            ProjectMedium projectMedium)
    {
        return resStateDao.getProjMediums(page, projectMedium);
    }

    public int getcurrentCount(ProjectMedium projectMedium)
    {
        return resStateDao.getcurrentCount(projectMedium);
    }

    public int getsumCount(ProjectMedium projectMedium)
    {
        return resStateDao.getsumCount(projectMedium);
    }

    public void setProjectMediumStatus(String[] selectStrings,
            ProjectMedium projectMedium)
    {
        resStateDao.setProjectMediumStatus(selectStrings, projectMedium);
    }

    public UserInfo getUserInfo(String code)
    {
        return resStateDao.getUserInfo(code);
    }

    public ResStateDao getResStateDao()
    {
        return resStateDao;
    }

    public void setResStateDao(ResStateDao resStateDao)
    {
        this.resStateDao = resStateDao;
    }

}
